package com.server.common.security.code.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class ThreadPoolUtils {

    public static ExecutorService newFixedThreadPool(){

        LinkedBlockingQueue<Runnable> linkedBlockingQueue = new LinkedBlockingQueue<>(100);

        return new ThreadPoolExecutor(1, 10,
                0L, TimeUnit.MILLISECONDS,
                linkedBlockingQueue);
    }


}
